<template>
  <div>
    <!-- <van-nav-bar
      title="我的阅读周报"
      left-text="返回"
      left-arrow
      @click-left="handleReturn"
      fixed
      placeholder
    />-->
    <div class="report-bg"></div>
    <div class="report-wrap"></div>
    <transition name="van-fade">
      <div class="report-content" v-show="show">
        <div class="report-info">
          <!--时间-->
          <div class="poster-time">
            <span>2020/07/27~2020/08/02</span>
            <span>SANYE出品</span>
          </div>
          <!--标题-->
          <div class="poster-title">
            <span>我的</span>
            <span>三叶阅读</span>
            <span>周报</span>
          </div>
          <!--关键词-->
          <div class="report-title">
            <span>KEYWORDS</span>
            <span>关键词</span>
          </div>
          <div class="report-tag">
            <van-tag mark color="rgb(145,199,255)">玄幻</van-tag>
            <van-tag mark color="rgb(145,199,255)">军事</van-tag>
            <van-tag mark color="rgb(145,199,255)">科技</van-tag>
            <van-tag mark color="rgb(145,199,255)">连载</van-tag>
            <van-tag mark color="rgb(145,199,255)">三寸人间</van-tag>
          </div>
          <!--阅读时间-->
          <div class="report-title">
            <span>DURATION</span>
            <span>阅读时间</span>
          </div>
          <div class="report-time">
            <span>本周阅读时间</span>
            <span>17.0h</span>
          </div>
          <div class="report-time">
            <span>同比上周变化</span>
            <span>40.0%</span>
          </div>
          <!--阅读排行-->
          <div class="report-title">
            <span>RANKING</span>
            <span>阅读排行</span>
          </div>
          <div class="rank-item">
            <img src="http://foglake.sanye666.top/images/default-covor.jpg" />
            <div class="rank-content">
              <div class="rank-title">
                <span>1</span>
                <span>三寸人间</span>
              </div>
              <span class="rank-title">阅读时间:4.5h</span>
            </div>
          </div>
          <div class="rank-item">
            <img src="http://foglake.sanye666.top/images/default-covor.jpg" />
            <div class="rank-content">
              <div class="rank-title">
                <span>2</span>
                <span>三寸人间</span>
              </div>
              <span class="rank-title">阅读时间:4.5h</span>
            </div>
          </div>
          <div class="rank-item">
            <img src="http://foglake.sanye666.top/images/default-covor.jpg" />
            <div class="rank-content">
              <div class="rank-title">
                <span>3</span>
                <span>三寸人间</span>
              </div>
              <span class="rank-title">阅读时间:4.5h</span>
            </div>
          </div>
        </div>
      </div>
    </transition>

    <div class="share-button">
      <span class="share-return" @click="handleReturn">返回</span>
      <span class="share-start">分享给好友</span>
    </div>
  </div>
</template>

<script>
import Taro from "@tarojs/taro";
export default {
  name: "readreport",
  data() {
    return {
      show: false,
    };
  },
  created() {
    setTimeout(() => {
      this.show = true;
    }, 1000);
  },
  methods: {
    handleReturn() {
      Taro.navigateBack();
    },
  },
};
</script>

<style scoped>
.report-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url(http://foglake.sanye666.top/images/default-covor.jpg);
  background-repeat: no-repeat;
  background-size: 100vw 100vh;
  filter: blur(40px);
}
.report-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(
    0deg,
    rgba(245, 248, 252, 1) 0%,
    rgba(6, 27, 65, 1) 100%
  );
  opacity: 0.7;
}
.poster-title {
  font-size: 60px;
  color: white;
}
.poster-title span:nth-child(2) {
  background: rgb(145, 199, 255);
  padding: 10px;
  border-radius: 8px;
}
.poster-time {
  font-size: 26px;
  margin-bottom: 20px;
}

.poster-time span:first-child {
  color: rgb(145, 199, 255);
  background: white;
  padding: 4px 8px;
}

.poster-time span:last-child {
  color: white;
  background: rgb(145, 199, 255);
  padding: 4px 8px;
  position: relative;
  right: 6px;
}

.share-button {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  display: flex;
  justify-content: space-between;
  padding: 16px 34px;
  font-size: 22px;
  align-items: center;
  background: rgba(255, 255, 255, 1);
  box-shadow: 0px 0px 23px 0px rgba(6, 27, 65, 0.16);
  border-radius: 40px 40px 0px 0px;
}
.share-return {
  width: 30%;
  text-align: center;
}
.share-start {
  width: 95%;
  height: 68px;
  background: rgba(145, 199, 255, 1);
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}
.report-content {
  position: relative;
}
.report-info {
  position: absolute;
  top: 40px;
  left: 80px;
  width: 80%;
}
.report-title {
  font-size: 24px;
  margin: 40px 0;
}
.report-title span:first-child {
  color: rgb(145, 199, 255);
  background: white;
  padding: 4px 8px;
}
.report-title span:last-child {
  color: white;
  background: rgb(145, 199, 255);
  padding: 4px 8px;
  position: relative;
  right: 6px;
}
.report-tag {
}
.report-time {
  display: flex;
  justify-content: space-between;
  color: white;
  margin-bottom: 20px;
}
.report-time span:first-child {
  font-size: 24px;
}
.report-time span:last-child {
  font-size: 30px;
  width: 40%;
  background: rgb(145, 199, 255);
  color: white;
  padding: 0 0 0 20px;
  border-left: 8px solid rgb(145, 199, 205);
}
.rank-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}
.rank-item img {
  height: 130px;
  width: 100px;
  border-radius: 10px;
}
.rank-content {
  color: white;
  font-size: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.rank-title {
  margin-bottom: 10px;
}
.rank-title span:first-child {
  display: inline-flex;
  width: 40px;
  height: 40px;
  background: rgb(145, 199, 255);
  border-radius: 20px;
  align-items: center;
  justify-content: center;
}
.rank-time {
}
</style>